<template>
  <div v-show="item.isShow" class="f as pt10 pb10">
    <div
      :class="['nowrap mr10 tr', item.required ? 'need' : '']"
      :style="{
        width: item.isLabelWidth ? item.labelWidth + 'px' : 'auto',
      }"
    >
      {{item.label}}
    </div>
    <div :class="['f1 rel', item.errmsg ? 'error' : '']">
      <div v-if="item.disabled" class="l0 t0 r0 abs zx10 disabled" style="height:116px;background:rgba(0,0,0,.1)"></div>
      <div v-if="item.disabled" class="l0 b0 r0 abs zx10 disabled" style="top:120px;background:rgba(0,0,0,.1)"></div>
      <UploadFiles :max_size="2*1024*1024" :limit="2" :fileArr="item.value" @setFileArr="setFileArr" :errmsg="item.errmsg" :modalType="modalType"></UploadFiles>
      <div class="abs l0 gred" style="bottom:-20px;">{{item.errmsg}}</div>
    </div>
  </div>
</template>
<script src='./index.js'></script>
<style src='./index.css' scoped>
</style>